Skip to content

feat: Telegram bot users tab + mobile RAG controls#650

Merged
ShaerWare merged 2 commits intomainfrom
feat/telegram-users-gdrive-rag
Mar 25, 2026
Merged

feat: Telegram bot users tab + mobile RAG controls#650
ShaerWare merged 2 commits intomainfrom
feat/telegram-users-gdrive-rag

Conversation

@ShaerWare
Copy link
Owner

Summary

  • Telegram Users tab: shows real bot users from sessions — avatar, name, username, Telegram ID, dates
  • Access settings (allowed/admin users) moved below user list in same tab
  • Mobile ChatListView: improved LLM/RAG session details loading
  • Mobile chat.ts: added rag_mode, knowledge_collection_ids to session types
  • i18n: botUsers, noUsers, userSince keys (ru/en/kk)
  • CLAUDE.md: documented Google Drive RAG router

Relates to #271
Relates to #484

NEWS

👥 Пользователи Telegram-ботов теперь видны в админке!

Во вкладке «Пользователи» теперь отображается полный список людей, которые взаимодействовали с ботом — с аватарками, именами, юзернеймами и датами активности. Также улучшили настройки RAG в мобильном приложении.

Test plan

  • Telegram view → Users tab показывает реальных пользователей бота
  • Аватары с инициалами, имена, username, ID, даты
  • Allowed/admin users отображаются ниже списка
  • Mobile: LLM/RAG детали загружаются в ChatListView

🤖 Generated with Claude Code

ShaerWare and others added 2 commits March 25, 2026 21:44
- New model GoogleDriveProject (per-user Drive folder → RAG collection)
- Sync service: recursive folder scan, Docs→text, Sheets→CSV, text files
- Router: CRUD + sync at /admin/google-drive/projects
- Uses DatasetSynced event for reactive indexing (BM25 + embeddings)

## NEWS

📚 **Google Диск как база знаний!**

Теперь можно подключить папку Google Диска как источник базы знаний (RAG).
Документы, таблицы и текстовые файлы автоматически индексируются,
и ассистент может искать по ним при ответах в чате.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…trols

Telegram:
- Users tab now shows real bot users (from sessions) with avatar,
  name, username, Telegram ID, registration date, last activity
- Access settings (allowed/admin users) moved below user list

Google Drive RAG:
- GoogleDriveProject model — Drive folder as knowledge base collection
- router_google_drive.py — CRUD + sync endpoints (/admin/google-drive/*)
- google_drive_sync_service.py — sync Drive files to RAG collections
- Alembic migration for google_drive_projects table
- Registered in orchestrator.py

Mobile:
- ChatListView: improved LLM/RAG session details loading
- chat.ts: added rag_mode, knowledge_collection_ids to session types

## NEWS

👥 **Пользователи Telegram-ботов теперь видны в админке!**

Во вкладке «Пользователи» теперь отображается полный список людей,
которые взаимодействовали с ботом — с аватарками, именами, юзернеймами
и датами активности. Также добавили синхронизацию Google Drive с базой
знаний и улучшили настройки RAG в мобильном приложении.

Relates to #271
Relates to #484

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ShaerWare ShaerWare merged commit ecd6d40 into main Mar 25, 2026
3 checks passed
@ShaerWare ShaerWare deleted the feat/telegram-users-gdrive-rag branch March 25, 2026 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant